<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>
<script language="javascript">
var time=10;  
function closeWindow(){  
	window.setTimeout('closeWindow()',1000);  
	if(time>0){  
		document.getElementById("show").innerHTML=" 倒计时<font color=red>"+time+"</font>秒后将返回首页";  
		time--;  
	}  
	else{  
		window.opener=null; //关闭窗口时不出现提示窗口  
		window.open('<?php echo url('index');?>','_self');
		//window.close();  
	}  
}  
$(function(){
	closeWindow();	
});
</script>
<div id="gwzt3" class=" ztt"></div>
<div class="main">
  <div class="border1 magin20t">
    <div class="colorbg mt5 ml5 mr5 white2">订单完成</div>
    <div class="mb5 ml50 mr5 mt20 fleft mb20"> 支付成功！您可以： </div>
    <a href="<?php echo url('index');?>" class="btn fleft mt20 mr20 mb20">返回首页</a>
    <div class="clear"></div>
    <div class="mb5 ml50 mr50 mt20">
      <table width="100%" border="0" cellspacing="1" cellpadding="5" >
        <tr align="center" valign="middle">
          <td>
            <span id="show">倒计时10秒将返回首页</span>
          </td>
        </tr>
      </table>
    </div>
  </div>
</div>
<?$this->_endblock();?>
